<div class="col-md-12">
  <div class="panel panel-default mt20">
    <div class="panel-body">
	  <div class="col-sm-2 pull-right">
		<button class="btn btn-info btn-block" ng-click="addWechat()">绑定微信</button>
	  </div>
    </div>
  </div>

  <div class="panel panel-default">
    <div class="panel-body">
      <table class="table table-bordered">
	    <thead>
		  <tr>
			<th class="text-center col-md-2">商户信息</th>
			<th class="text-center col-md-2">微信昵称</th>
			<th class="text-center col-md-2">绑定时间</th>
			<th class="text-center col-md-1">状态</th>
			<th class="text-center col-md-2">操作</th>
		  </tr>
        </thead>
        <tbody>
		  <tr ng-repeat="obj in list">
			<td class="text-center">{{obj.company_name}}({{obj.company_code}})</td>
			<td class="text-center">{{obj.nickname}}</td>
			<td class="text-center">{{obj.create_time}}</td>
			<td class="text-center">{{obj.status=='1'?'正常':'停用'}}</td>
			<td class="text-center">
			  <button class="btn btn-xs btn-primary" ng-click="edit(obj)">配置消息提醒</button>
			  <button class="btn btn-xs btn-danger" ng-if="obj.status=='1'" ng-click="setStatus(obj,'0')">停用</button>
			  <button class="btn btn-xs btn-success" ng-if="obj.status=='0'" ng-click="setStatus(obj,'1')">启用</button>
			</td>
		  </tr>
        </tbody>
      </table>
    </div>
  </div>
</div>